package com.hdoit.ares.web.cust.modelconfig;

import com.hdoit.ares.web.cust.providers.AdviceStatusProvider;
import com.tennetcn.component.attribute.DateAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

public class AdviceFeedbackConfig extends ModelMetadataAttributeConfiguration{
	
	public AdviceFeedbackConfig(){
		this.setProperty("adviceName")
		.hasAttribute(new DisplayNameAttribute("反馈人"));
		
		this.setProperty("advice")
		.hasAttribute(new DisplayNameAttribute("反馈内容"));
		
		this.setProperty("contact")
		.hasAttribute(new DisplayNameAttribute("联系方式"));
		
		this.setProperty("createDate")
		.hasAttribute(new DisplayNameAttribute("反馈时间"))
		.hasAttribute(new DateAttribute());
		
		this.setProperty("advicestate")
		.hasAttribute(new DisplayNameAttribute("反馈状态"))
		.hasAttribute(new DropDownListAttribute(new AdviceStatusProvider()));
		
		this.setProperty("name")
		.hasAttribute(new DisplayNameAttribute("处理人"));
		
		this.setProperty("modifyDate")
		.hasAttribute(new DisplayNameAttribute("处理时间"))
		.hasAttribute(new DateAttribute());
		
	}
}
